<?php
namespace Home\Model;

use think\Model;

class theuserModel extends Model
{
    //protected $patchValidate = true;
    protected $_validate = array(
        //默认情况下用系统内置
        array('username','require','学号不得为空' ),
        array('name','require','用户姓名不得为空' ),
        array('password', 'require', '密码不得为空！'),
        array('email', 'require', '邮箱不得为空！'),
        array('tel', 'require', '手机号不得为空！'),
        array('email', 'email', '邮箱格式不合法！'),
        //array('password',$_POST['pass1'], '确认密码和密码不一致'),
        array('password', '6,20', '密码不得小于6位，不得大于20位', 3, 'length'),
        //array('tel',$_POST['pass1']==$_POST['pass1'],'确认密码和密码不一致'),
    );
}